setImportantForContentCapture
Sets the mode for determining whether this view is considered important for content capture.
The platform determines the importance for autofill automatically but you can use this method to customize the behavior. Typically, a view that provides text should be marked as IMPORTANT_FOR_CONTENT_CAPTURE_YES. Compatibility behavior:
- SDK 30 and above, this method matches platform behavior.
- SDK 29 and below, this method does nothing.
Parameters
v
The View against which to invoke the method.